<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix'        => 'admin/Designer',
    'namespace'     => 'Beerus\\Modules\\Designer\\Controllers',
    'middleware'    => [
        'web',
        'admin',
    ],
], function (Router $router) {
    // 荣耀值
    $router->get('/glory', 'GloryController@index');
    $router->get('/glory/create', 'GloryController@edit');
    $router->get('/glory/{id}/edit', 'GloryController@edit');
    $router->post('/glory/save', 'GloryController@editSubmit');
    // Ka设计师
    $router->get('/ka', 'KaDesignerController@index')->name('ka.list');
    $router->get('/ka/create', 'KaDesignerController@edit');
    $router->get('/ka/{id}/edit', 'KaDesignerController@edit');
    $router->post('/ka/save', 'KaDesignerController@editSubmit');
    $router->get('/ka/{id}/downfile', 'KaDesignerController@DownPdfFile');
	$router->get('/export1', 'KaDesignerController@exportKaOrder');
	$router->get('/export2', 'KaDesignerController@exportKaReturn');
    // 设计师
    $router->get('/list', 'DesignerController@index')->name('designer.list');
    $router->get('/list/create', 'DesignerController@edit');
    $router->get('/list/{id}/edit', 'DesignerController@edit');
    $router->post('/list/save', 'DesignerController@editSubmit');
    $router->get('/export_phone', 'DesignerController@exportPhone');
    // 销售认领用户
    $router->get('/sale', 'SaleController@index');
    $router->get('/sale/exportData', 'SaleController@exportData');
    $router->get('/sale/send', 'SaleController@sendMsg'); // 发送下行
    $router->get('/sale/sendSave', 'SaleController@sendMsgSave');
    $router->get('/sale/sendList', 'SaleController@sendList');
    // 设计师权益
    $router->get('/equity_list', 'DesignerEquityController@index')->name('equity.list');
    $router->get('/equity_list/create', 'DesignerEquityController@edit');
    $router->get('/equity_list/{id}/edit', 'DesignerEquityController@edit');
    $router->post('/equity_list/save', 'DesignerEquityController@editSubmit');
    // 黑名单
    $router->get('/blacklist', 'BlacklistController@index')->name('blacklist');
    $router->get('/blacklist/create', 'BlacklistController@edit');
    $router->get('/blacklist/{id}/edit', 'BlacklistController@edit');
    $router->post('/blacklist/save', 'BlacklistController@editSubmit');
    // 设计师机构团队管理
    $router->get('/team', 'DesignerTeamController@index')->name('designer.team');
    $router->get('/team/create', 'DesignerTeamController@edit');
    $router->get('/team/{id}/edit', 'DesignerTeamController@edit');
    $router->post('/team/save', 'DesignerTeamController@editSubmit');
    //风格图片管理
    $router->get('/pic_list', 'StylePicController@index');
    $router->get('/pic_list/create', 'StylePicController@create');
    $router->get('/pic_list/{id}/edit', 'StylePicController@create');
    $router->post('/pic_list/save', 'StylePicController@save');
    $router->delete('/pic_list/{id}', 'StylePicController@delPic');
    // 设计师学堂
	$router->get('/course_list', 'DesignerCourseController@index')->name('course.list');
	$router->get('/course_list/create', 'DesignerCourseController@edit');
	$router->get('/course_list/{id}/edit', 'DesignerCourseController@edit');
	$router->post('/course_list/save', 'DesignerCourseController@editSubmit');
    // 服务亮点
    $router->get('/service_spot', 'ServiceSpotController@index')->name('spot.list');
    $router->get('/service_spot/create', 'ServiceSpotController@edit');
    $router->get('/service_spot/{id}/edit', 'ServiceSpotController@edit');
    $router->post('/service_spot/save', 'ServiceSpotController@editSubmit');
    // 设计师反馈亮点
    $router->get('/feedback_spot', 'FeedbackSpotController@index');
    $router->get('/feedback_export', 'FeedbackSpotController@exportFeedback');
    // 设置了服务亮点的设计师
    $router->get('/spot_designer', 'SpotDesignerController@index');
    // 流量池等级信息管理
    $router->get('/flow_pool/{id}', 'FlowPoolController@index');
    // 认证咨询
    $router->get('/auth_feedback', 'AuthFeedBackController@index')->name('authFeedback.list');
    $router->get('/auth_feedback/{uid}', 'AuthFeedBackController@handleFeedback');
    $router->post('/auth_feedback/{uid}', 'AuthFeedBackController@saveFeedback');
    $router->get('/auth_feedback/normalword/edit', 'AuthFeedBackController@editNormalWord');
    $router->post('/auth_feedback/normalword/save', 'AuthFeedBackController@saveNormalWord');

    //设计师广告位
    $router->get('/adv/list', 'AdvPositionController@index')->name('adv.list');
    $router->get('/adv/create', 'AdvPositionController@edit');
    $router->get('/adv/list/{id}/edit', 'AdvPositionController@edit');
    $router->post('/adv/save', 'AdvPositionController@editSubmit');

    //设计师套餐管理
    $router->get('/combo/list', 'ComboController@index')->name('combo.list');
    $router->get('/combo/create', 'ComboController@edit');
    $router->get('/combo/list/{id}/edit', 'ComboController@edit');
    $router->post('/combo/save', 'ComboController@editSubmit');
    // 设计师城市管理
    $router->get('/area', 'DesignerAreaController@index')->name('area.list');
    $router->get('/area/create', 'DesignerAreaController@edit');
    $router->get('/area/{id}/edit', 'DesignerAreaController@edit');
    $router->post('/area/save', 'DesignerAreaController@editSubmit');
    $router->delete('/area/{id}', 'DesignerAreaController@del');
    $router->get('/area/designer/{id}', 'DesignerAreaController@designer');
    $router->put('/area/{id}', 'DesignerAreaController@switch');
    // 设计师评价
    $router->get('/evaluation', 'DesignerEvaluationController@index');// 评价列表
    $router->post('/evaluation/check', 'DesignerEvaluationController@check');// 审核
    $router->delete('/evaluation/{id}', 'DesignerEvaluationController@del');// 删除评价
    $router->get('/evaluation/{id}/edit', 'DesignerEvaluationController@edit');// 审核页
    $router->get('/evaluationReply', 'EvaluationReplyController@index');// 回复列表
    $router->delete('/evaluationReply/{id}', 'DesignerEvaluationController@del');// 删除回复
    // 剩余权益修改
    $router->get('/remiancombo/{uid}/edit', 'KaDesignerController@editRemainCombo');
    $router->post('/remiancombo/save', 'KaDesignerController@editRemainComboSubmit');

    //快速提问列表
    $router->get('/quickQuestion','QuickQuestionController@index');
    $router->get('/quickQuestion/create', 'QuickQuestionController@edit');
    $router->get('/quickQuestion/{id}/edit', 'QuickQuestionController@edit');
    $router->post('/quickQuestion/save', 'QuickQuestionController@editSubmit');
    $router->delete('/quickQuestion/{id}', 'QuickQuestionController@delete');
    // 设计师续费意愿记录
    $router->get('/intentionLog','RenewIntentionLogController@index');
});
